package com.springboot_shopping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.sql.Timestamp;

@Data
@TableName("t_cart_item")
public class CartItem {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Timestamp createTime;
    private Timestamp updateTime;
    private Integer userId;      //用户ID
    private Integer productId;   //商品ID
    private Integer quantity;    //商品数量
    private Boolean selected;    //是否选中
}